<?php

use Welcomescreen\Agavi\Action;

class Frontend_DisplayScreenAction extends Action\FrontendBaseAction {
	public function executeRead(AgaviWebRequestDataHolder $rd) {
		$ctx = $this->getContext();
		$visit = $ctx->getModel('VisitManager')->getVisit($rd->getParameter('id'));
		$template = $ctx->getModel('TemplateManager')->getTemplate($visit->getTemplateName());
		$this->setAttribute('visit', $visit);
		$this->setAttribute('template', $template);
		
		return 'Success';
	}
}

?>